<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddIdxLinkIdVersionInTable extends AbstractMigration
{
    public function up()
    {
        $this->table('version')
            ->addIndex(['link_id'], ['type' => 'normal', 'name' => 'idx_version_link_id'])
            ->save();

    }

    public function down()
    {
        $this->table('version')->removeIndexByName('idx_version_link_id')->save();
    }
}
